{% extends 'base.html' %}
{% block title %}QEB老师管理———课程表{% endblock %}
{% block Navigation %}
<div class="carousel slide" id="carousel-176804" style="margin:55px 0;">
<ul class="nav nav-tabs">
    <li style="background-color: rgb(240, 173, 78);"><a href="/teacher" style="font-size: larg;color: rgb(243, 8, 8);">教师管理</a></li>
    {% for teacher_1 in teachers %}
    {%  if teacher.id == teacher_1.id %}
    <li class="active"><a href="/teacher/{{ teacher.id }}" style="color: rgb(0,0,0)">{{ teacher_1.name }}</a></li>
    {% else %}
    <li style="background-color: rgb(240, 173, 78)"><a href="/teacher/{{ teacher_1.id }}" style="color: rgb(0,0,0)">{{ teacher_1.name }}</a></li>
    {% endif %}
    {% endfor %}
    <li style="margin: 3px;">
      <form role="searchs" method="POST" id="searchform" >
        {% csrf_token %} 
                
                <button type="submit" name="add" class="btn btn-danger ">删除老师</button>  
                <p style="color: rgb(245, 7, 7);">{{messages_1}}  </p>        
    </form>
  </li>
  </ul>
<h2 style="color: crimson;">{{  teacher.name }}老师学员数：{{ leng }}人</h2>



<table class="table table-bordered" style="background-color: rgb(255, 255, 255);">

  <thead style="color: crimson;">
    <tr>
      <th>时间</th>
      <th>周三</th>
      <th>周四</th>
      <th>周五</th>
      <th>周六</th>
      <th>周日</th>
    </tr>
  </thead>

  <tbody>


    <tr>
      <td>上午一</td>
      <td>
        {% for name in  timetable.0.0 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td>
      <td>
        {% for name in  timetable.0.1 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.0.2 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.0.3 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.0.4 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td>
    </tr>
    <tr>
      <td>上午二</td>
      <td>
        {% for name in  timetable.1.0 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}
      </td><td>
        {% for name in  timetable.1.1 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.1.2 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.1.3 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.1.4 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td>
    </tr>
    <tr>
      <td>下午一</td>
      <td>
        {% for name in  timetable.2.0 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}
      </td><td>
        {% for name in  timetable.2.1 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.2.2 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.2.3 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.2.4 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td>
    </tr>
    <tr>
      <td>下午二</td>
      <td>
        {% for name in  timetable.3.0 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}
      </td><td>
        {% for name in  timetable.3.1 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.3.2 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.3.3 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.3.4 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td>
    </tr>
    <tr>
      <td>下午三</td>
      <td>
        {% for name in  timetable.4.0 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}
      </td><td>
        {% for name in  timetable.4.1 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.4.2 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.4.3 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.4.4 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td>
    </tr>
    <tr>
      <td>晚上</td>
      <td>
        {% for name in  timetable.5.0 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}
      </td><td>
        {% for name in  timetable.5.1 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.5.2 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.5.3 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td><td>
        {% for name in  timetable.5.4 %}
        <span class="label label-warning">{{ name }}</span>
        {% endfor %}

      </td>
    </tr>



  </tbody>
</table>
</div>



{% endblock Navigation %} 